package com.tencent.qf.bascic.controller;

import com.tencent.qf.bascic.controller.req.AwradProfitFlowRequest;
import com.tencent.qf.bascic.dal.AwardProfitFlowDO;
import com.tencent.qf.bascic.service.DataSearchService;
import com.tencent.qf.common.aspect.annotation.ApiLog;
import com.tencent.qf.common.aspect.annotation.Signature;
import com.tencent.qf.common.pojo.HttpResult;
import com.tencent.qf.common.pojo.PageResult;
import lombok.extern.slf4j.Slf4j;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/api/basic")
@Slf4j
public class DataAwardProfitFlowController {
    @Autowired
    private DataSearchService dataSearchService;

    @Signature
    @ApiLog("待确认收益流水")
    @PostMapping("/team/profitFlow")
    public HttpResult<PageResult<AwardProfitFlowDO>> awradProfitFlow(
            @RequestBody com.tencent.qf.common.pojo.PageRequest<AwradProfitFlowRequest> request){
        PageResult<AwardProfitFlowDO> pageResult = dataSearchService.awradProfitFlow(request);
        return HttpResult.success(pageResult);
    }
}
